<?php
class Application_Model_DbTable_UserAccount extends Application_Model_DbTable_DomainObject{
    
    protected $_name = 'uuch_account';
    
    public function getMapper() {
        return array('id','money','score','userGrade','gradePrivilege','birthday','dateUp','hdscore');
    }
    
    /**
     * 根据用户ID返回对应的帐户
     * @param int $userId
     * @return Application_Model_UserAccount 
     */
    public function getByUserId($userId){
        return $this->queryOne(array('id'=>$userId));
    }
}